﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_Master/AdminMaster2.master" AutoEventWireup="true" 
CodeFile="txList.aspx.cs" Inherits="txList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="apply">
  <div class="apply2">
  <%-- <uc_left_m:left_menu ID="left_m" runat="server" />--%>
    <div class="myul_r">
      <div class="mod_pad4">
<div class="hd_admin">
&nbsp;&nbsp;&nbsp;&nbsp;<strong>待审核用户提现</strong>
</div>
        <div class="admin_tab_box1">
          <div class="clear"></div>
       <div class="coupons">
            <table class="w top20"  border="0" cellspacing="0" cellpadding="0"  >
              <tr class="t">
              <td  style=" width:300px;">用户编号</td>
                <td  style=" width:300px;">真实姓名</td>
                <td  style=" width:300px;">提现金额</td>
                <td  style=" width:500px;">申请时间</td>
                <td  style=" width:300px;">银行开户名</td>
                 <td  style=" width:300px;">账号</td>
                <td  style=" width:300px;">银行</td>
                <td  style=" width:300px;">支行</td>
                <td  style=" width:500px;">操作</td>
              </tr>            
              <%if (tzlist != null && tzlist.Count > 0)
                { %>
                <%for (int k = 0; k < tzlist.Count; k++)
                  { %>
              <tr >
              <td  style="width:305px;"><%=tzlist[k].user_id%></td>
                <td  style="width:300px;"><%=tzlist[k].adduser%></td>
                <td  style="width:260px;"><%=tzlist[k].total%></td>
                <td  style="width:350px;"><%=tzlist[k].addtime.ToString("yyyy-MM-dd HH:mm")%></td>
                <td  style="width:300px;"><%=tzlist[k].moduser%></td>
                <td  style="width:300px;"><%=tzlist[k].account%></td>
                <td  style="width:300px;"><%=tzlist[k].user_mem%></td>
                <td  style="width:300px;"><%=tzlist[k].branch%></td>                            
                <td  style="width:390px;"><a href="javascript:checkFrmSubmit('<%=tzlist[k].Id %>','<%=tzlist[k].credited%>');" >同意此提现</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:delthe('<%=tzlist[k].Id%>');" >删除</a>
                </td>
              </tr>
              <%} %>
              <%}
                else
                { %>
             <tr>
                <td  style=" width:1080px;" colspan="9"><div class='no_data'>^_^&nbsp;&nbsp;没有符合条件的数据！</div></td>
              </tr> 
              <%} %>             
            </table>
          </div> 
        </div>
                  <div id="changpage" style="text-align:center"> </div> 
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="clear"></div>
</div><script language="javascript" type="text/javascript">
          var obj, j;
          var page = 0;
          var nowPage = 0; //当前页
          var listNum = 10; //每页显示<ul>数
          var PagesLen; //总页数
          var PageNum = 4; //分页链接接数(5个)
          onload = function () {
              obj = document.getElementById("www_zzjs_net").getElementsByTagName("tr");
              j = obj.length
              PagesLen = Math.ceil(j / listNum);
              upPage(0)
          }
          function upPage(p) {
              nowPage = p
              //内容变换
              for (var i = 0; i < j; i++) {
                  obj[i].style.display = "none"
              }
              for (var i = p * listNum; i < (p + 1) * listNum; i++) {
                  if (obj[i]) obj[i].style.display = "block"
              }
              //分页链接变换
              strS = '<a href="###" onclick="upPage(0)">首页</a>  '
              var PageNum_2 = PageNum % 2 == 0 ? Math.ceil(PageNum / 2) + 1 : Math.ceil(PageNum / 2)
              var PageNum_3 = PageNum % 2 == 0 ? Math.ceil(PageNum / 2) : Math.ceil(PageNum / 2) + 1
              var strC = "", startPage, endPage;
              if (PageNum >= PagesLen) { startPage = 0; endPage = PagesLen - 1 }
              else if (nowPage < PageNum_2) { startPage = 0; endPage = PagesLen - 1 > PageNum ? PageNum : PagesLen - 1 } //首页
              else { startPage = nowPage + PageNum_3 >= PagesLen ? PagesLen - PageNum - 1 : nowPage - PageNum_2 + 1; var t = startPage + PageNum; endPage = t > PagesLen ? PagesLen - 1 : t }
              for (var i = startPage; i <= endPage; i++) {
                  if (i == nowPage) strC += '<a href="###" style="color:red;font-weight:700;" onclick="upPage(' + i + ')">' + (i + 1) + '</a> '
                  else strC += '<a href="###" onclick="upPage(' + i + ')">' + (i + 1) + '</a> '
              }
              strE = ' <a href="###" onclick="upPage(' + (PagesLen - 1) + ')">尾页</a>  '
              strE2 = nowPage + 1 + "/" + PagesLen + "页" + "  共" + j + "条"
              document.getElementById("changpage").innerHTML = strS + strC + strE + strE2
          }
</script>
    <script language="javascript" type="text/javascript">
        function checkFrmSubmit(vid,realmoney) {
            if (confirm('您确认给用户提现' + realmoney + '元? 请向此用户转账' + realmoney + '元！')) {
                jQuery.ajax({
                    url: "/Ajax/Otsql.ashx",
                    data: { t: 'ver_u_tx', utxid: vid },
                    type: "POST",
                    success: function (data) {
                        if (data + '' == 'True' || data + '' == 'true') {
                            alert('确认用户提现成功！');
                            window.location.reload();
                        } else {
                            alert('确认提现失败，请检查！');
                        }
                    }
                });
            }
        }
    </script>
    <script language="javascript" type="text/javascript">
        function delthe(id) {
            if (confirm("删除后不能恢复！确定不同意此提现，要将此提现记录删除？")) {
                jQuery.ajax({
                    url: "/Ajax/Otsql.ashx",
                    data: { t: 'delete_txord', long_eid: id },
                    type: "POST",
                    success: function (data) {
                        if (data + '' == 'True' || data + '' == 'true') {
                            alert("删除成功!");
                            window.location.reload();
                        } else {
                            alert('删除失败，请检查!');
                        }
                    }
                });

            }
        }
</script>
</asp:Content>